﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace NetDon.OA.Portal.Finance
{
    public partial class InvoiceEdit : NavigationPageBase
    {
        public Guid Id
        {
            get { return Parameters.GetGuid("Id"); }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                
                CancelButton = btnCancel;
                this.btnSave.Visible = InvoiceInfoUC.LoadInitialData(Id);

            }
        }




        protected void btnSave_Click(object sender, EventArgs e)
        {

            if (this.InvoiceInfoUC.SaveInvoice())
            {
                Success("保存成功！");
                this.CloseWindow(true);
            }

        }





    }
}